<?php /*a:3:{s:49:"/www/wwwroot/ams/app/index/view/index/notice.html";i:1589295068;s:50:"/www/wwwroot/ams/app/index/view/public/header.html";i:1588821168;s:50:"/www/wwwroot/ams/app/index/view/public/footer.html";i:1588833951;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="/static/index/moban/assets/img/apple-icon.png">
    <link rel="icon" type="image/png" href="/static/index/moban/assets/img/favicon.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>首页 | <?php echo htmlentities($system_name); ?></title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
        name='viewport' />
    <link href="/static/index/moban/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/static/index/moban/assets/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
</head>

<body class="index-page sidebar-collapse">

    <!-- 引入导航栏 -->
    <nav class="navbar navbar-expand-lg bg-info fixed-top">
    <div class="container">
        <div class="navbar-translate">
            <div class="navbar-brand text-white" style="font-size: 22px;"><?php echo htmlentities($system_name); ?></div>
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
                data-target="#example-navbar-info" aria-controls="navbarSupportedContent" aria-expanded="false"
                aria-label="Toggle navigation">
                <span class="navbar-toggler-bar bar1"></span>
                <span class="navbar-toggler-bar bar2"></span>
                <span class="navbar-toggler-bar bar3"></span>
            </button>
        </div>

        <div class="collapse navbar-collapse justify-content-end has-image" id="example-navbar-info">
            <ul class="navbar-nav">
                <li class="nav-item" style="float: right;">
                    <a class="nav-link" href="<?php echo url('index/index'); ?>">
                        <p style="font-size: 16px;">首页</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('index/notice_list'); ?>">
                        <p style="font-size: 16px;">更多资讯</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('index/link'); ?>">
                        <p style="font-size: 16px;">友情链接</p>
                    </a>
                </li>
                <?php if($user_info): ?>
                <li class="nav-item active">
                    <a class="nav-link" href="<?php echo url('User/index'); ?>">
                        <p><?php echo htmlentities($user_info->name); ?></p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/logout'); ?>">
                        <p>退出</p>
                    </a>
                </li>
                <?php else: if($registered): ?>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/index'); ?>">
                        <p>登录</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/register'); ?>">
                        <p>注册</p>
                    </a>
                </li>
                <?php else: ?>
                <li class="nav-item">
                    <a class="nav-link" href="<?php echo url('Login/index'); ?>">
                        <p>登录</p>
                    </a>
                </li>
                <?php endif; ?>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</nav>
<!-- 向下推65像素 -->
<div style="height: 65px;"></div>

<!-- 防止闪屏 -->
<script src="/static/index/moban/assets/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
<!-- Code JS File -->
<script src="/static/index/moban/assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="/static/index/moban/assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="/static/index/moban/assets/js/core/bootstrap.min.js" type="text/javascript"></script>

<!-- 弹出层 -->
<script src="/static/admin/lib/layer/layer.js"></script>

<!-- 模板动作 -->
<script src="/static/index/moban/assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        // the body of this function is in assets/js/now-ui-kit.js
        nowuiKit.initSliders();
    });

    function scrollToDownload() {

        if ($('.section-download').length != 0) {
            $("html, body").animate({
                scrollTop: $('.section-download').offset().top
            }, 1000);
        }
    }
</script>

    <div class="container" style="min-height: 470px;">
        <div class="row" style="margin-top: 20px;margin-bottom: 20px;">
            <div class="col-md-2">
                <div class="row">
                    <div class="col-md-12">
                        <div class="alert bg-info" style="border-radius: 10px;">
                            <a href="<?php echo url('Index/index'); ?>" class="text-white">
                                返回首页
                            </a>
                        </div>
                        <div class="alert bg-info"  style="border-radius: 10px;">
                            <a href="<?php echo url('Index/notice_list'); ?>" class="text-white">
                                更多资讯
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-8">
                <div class="row">
                    <!-- 标题 -->
                    <div class="col-md-12">
                        <div style="text-align: center;">
                            <h2><?php echo htmlentities($notice_data['title']); ?></h2>
                        </div>
                    </div>

                    <!-- 信息来源 作者 发布日期 -->
                    <div class="col-md-12" style="margin-bottom: 20px;">
                        <div class="row">
                            <div class="col-md-4 text-left">
                                <span style="color: blue;">信息来源：</span><?php echo htmlentities($notice_data['information_source']); ?>
                            </div>
                            <div class="col-md-4 text-center">
                                <span style="color: blue;">作者：</span><?php echo htmlentities($notice_data['author']); ?>
                            </div>
                            <div class="col-md-4 text-right">
                                <span style="color: blue;">发布日期：</span><?php echo htmlentities(date("Y-m-d",!is_numeric($notice_data['release_date'])? strtotime($notice_data['release_date']) : $notice_data['release_date'])); ?>
                            </div>
                        </div>
                    </div>

                    <!-- 正文信息 -->
                    <div class="col-md-12">
                        <div id="edit"></div>
                    </div>

                    <!-- 图片信息 -->
                    <div class="row" id="notice_iamge">
                        <?php if(is_array($notice_data['image_files']) || $notice_data['image_files'] instanceof \think\Collection || $notice_data['image_files'] instanceof \think\Paginator): $i = 0; $__LIST__ = $notice_data['image_files'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;?>
                        <div class="col-md-2"></div>
                        <div class="col-md-8" style="text-align: center;padding: 5px;">
                            <img src="/storage/<?php echo htmlentities($row); ?>"
                                style="height: 400px; overflow: hidden;border-radius: 15px; border: 2px solid #ddd;"
                                alt="">
                        </div>
                        <div class="col-md-2"></div>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>

                </div>
            </div>
            <div class="col-md-2">
            </div>

        </div>
    </div>

    <!-- 引入页脚 -->
    <footer class="footer " style="background-color: #ddd;">
    <div style="text-align: center;">
        Copyright © 2020 夏立军 山东建筑大学-<?php echo htmlentities($system_name); ?> 201611106025
    </div>
</footer>

    <!-- 新闻通知内容 -->

    <script>

        $('#edit').html(HTMLDecode("<?php echo htmlentities($notice_data['content']); ?>"));

        function HTMLDecode(text) {
            var temp = document.createElement("div");
            temp.innerHTML = text;
            var output = temp.innerText || temp.textContent;
            temp = null;
            return output;
        }
    </script>
</body>

</html>